package com.movitech.mobile.cz.base.sys.service;

import com.movitech.mobile.cz.base.modules.controller.RestReturnResult;
import com.movitech.mobile.cz.base.sys.bizvo.UserRequestVO;
import com.movitech.mobile.cz.base.sys.entity.SysUser;
import com.baomidou.mybatisplus.service.IService;
import com.movitech.mobile.cz.base.sys.entity.ext.ExtSysUser;
import com.movitech.mobile.cz.base.sys.entity.ext.SysUserRequestVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-02-28
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 注册
     * @param userRequestVo
     */
    public RestReturnResult<SysUser> saveUserRequestVo(UserRequestVO userRequestVo);

    /**
     *根据登录名查询账号信息
     * @param userName
     * @return
     */
    public SysUser getSysUserByUserName(String userName);

    String createPassword();

    ExtSysUser getUserByLoginName(String loginName);

    String getSysUserNameByIds(String inspectionMemberUserIds);

    /**
     * 批量保存
     * @param sysUserRequestVOList
     * @return
     */
    public RestReturnResult<Object> batchAdd(List<SysUserRequestVO> sysUserRequestVOList);
}
